<?php
	class Continents {

		function __construct(){
			FunctionsHelper::includeFiles(
				array(
					ADMINISTRATOR_MODEL_DIRECTORY . 'model.php',
					ADMINISTRATOR_MODEL_DIRECTORY . 'continent.php'
				)
			);
		}

		public function getAll(){
			$arrResult = Continent::getAll();
			$arrContinents = array();
			foreach($arrResult as $continent){
				$arrContinents[] = new Continent($continent);
			}
			return $arrContinents;
		}

		public function getContinent($arrContinent){
			return $this->getOneContinent($arrContinent);
		}

		private function getOneContinent($arrContinent){
			$continent = new Continent($arrContinent);
			$arrContinent = $continent->getContinent();

			return new Continent($arrContinent);
		}
	}
?>